<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>初始化数据</title>
<link rel="stylesheet" type="text/css" href="" media="all" />
<script type="text/javascript" src="<s:url value='/resources/js/jquery/jquery-1.5.2.min.js'/>"></script> 
<script type="text/javascript">
var contextpath="<%=request.getContextPath()%>";
//
$(function(){
	alert("初始化数据成功！");
	$("#guidecardupdate").click(function(){
		$.ajax({
			url:contextpath+'/hotel/guidecardUpdate.action',
			type:'post',
			data:{
				id:$("#hiddenId").val(),
				guideCard:$("#guidecard").val(),
				tourcode:$("#tourcode").val(),
				touristCard:$("#touristcard").val(),
				eNum:$("#eNum").val(),
				devId:$("#devId").val()},
			dataType:'json',
			success:function(msg){
				alert("更新成功");
			}
			
		});
	});
})
	
</script>
</head>
<body>
<input type="hidden" value="<s:property value='#request.key.id'/>"  id="hiddenId"/>
<div>导游身份证号  <input id="guidecard" value="<s:property value='#request.key.cardNum'/>"/></div>
<div>行程编号 <input id="tourcode" value="<s:property value='#request.key.tourCode'/>"/></div>
<div>团员身份证编号 <br>
<s:iterator value="#request.key.tlist" status="h">
<s:if test="#h.isFirst()">
姓名：<s:property value="name"/>
身份证号：<input id="touristcard" value="<s:property value="cardNo"/>"/><br>
</s:if>
<s:else>
姓名：<s:property value="name"/>
身份证号：<s:property value="cardNo"/><br>
</s:else>
</s:iterator>
</div>
<div>车牌号：<input id="eNum" type="text" value="<s:property value='#request.key.enumber'/>"/></div>
<div>电子车牌号：<input id="devId" value="<s:property value="#request.key.devId"/>"/></div>
<input type="button"  value="更新" id="guidecardupdate">
<br>
<br>
抵达日期:<s:date name="#request.key.toHnTime" format="yyyy-MM-dd hh:mm:ss"/><br>
离达日期:<s:date name="#request.key.outHnTime" format="yyyy-MM-dd hh:mm:ss"/><br>
出发日期:<s:date name="#request.key.beginTime" format="yyyy-MM-dd hh:mm:ss"/><br>
结束日期:<s:date name="#request.key.endTime" format="yyyy-MM-dd hh:mm:ss"/><br>
酒店预订日期:<s:date name="#request.key.hotelTime" format="yyyy-MM-dd"/><br>
预订天数:<s:property value='#request.key.days'/><br>
用餐预订日期:<s:date name="#request.key.goodsTime" format="yyyy-MM-dd"/><br>
购物时间:<s:date name="#request.key.shopTime" format="yyyy-MM-dd"/><br>
预订门票时间:<s:date name="#request.key.ticketTime" format="yyyy-MM-dd"/><br>
</body>
</html>